package com.zero.enable.starter;

import com.zero.enable.starter.annotation.EnableBean;
import com.zero.enable.starter.annotation.EnableCustService;
import com.zero.enable.starter.annotation.EnableMyX;
import com.zero.enable.starter.service.CounterService;
import com.zero.enable.starter.service.LoggerService;
import com.zero.enable.starter.service.MonitorService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

//@EnableCustService
//@EnableMyX
@EnableBean
@SpringBootApplication
public class SpringbootApplication {
    public static void main(String[] args) {
        ConfigurableApplicationContext applicationContext  = SpringApplication.run(SpringbootApplication.class, args);
        System.err.println("-->"+applicationContext.getBean(LoggerService.class));
        System.err.println("-->"+applicationContext.getBean(MonitorService.class));
        System.err.println("-->"+applicationContext.getBean(CounterService.class));
    }
}
